
package cn.com.lyj6851.modules.system.domain;

import cn.com.lyj6851.domain.BaseDomain;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
* 字典详情
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class DictDetail extends BaseDomain {

    private static final long serialVersionUID = -5152909729611274501L;
    /** 字典详细 */
    @TableId
    private Long id;
    /** 字典标签 */
    private String label;
    /** 字典值 */
    private String value;
    /** 排序 */
    private String sort;
    /** 字典id */
    private Long dictId;
    @TableField(exist = false)
    private Dict dict;//字典
    public void copy(DictDetail source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
